package com.example.partyfee.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
public class PartyMemberExcelDTO {

    @ExcelProperty("所在班级")
    @NotBlank(message = "所在班级不能为空")
    private String className;

    @ExcelProperty("职务")
    @NotBlank(message = "职务不能为空")
    private String position;

    @ExcelProperty("姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ExcelProperty("身份证号")
    @NotBlank(message = "身份证号不能为空")
    private String idCard;

    @ExcelProperty("标识号")
    @NotBlank(message = "标识号不能为空")
    private String identifier;

    @ExcelProperty("入党时间")
    @NotNull(message = "入党时间不能为空")
    @DateTimeFormat("yyyy-MM-dd")
    private LocalDate joinDate;

    @ExcelProperty("职级")
    @NotBlank(message = "职级不能为空")
    private String positionLevel;
} 